package net.udp;

import java.net.InetAddress;

public class UDPEchoClient
{
	public final static int DEFAULT_PORT = 7;
	public static void main(String[] args)
	{
		String hostname = "localhost";
		int port  = DEFAULT_PORT;
		try
		{
			InetAddress ia = InetAddress.getByName(hostname);
			SenderThread sender = new SenderThread(ia, port);
			sender.start();
			Thread recerver = new ReceiverThread(sender.getSocket());
			recerver.start();
		}
		catch (Exception e)
		{
		}
	}
}
